﻿using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;

namespace WenSkin.SQL
{
    [Designer("WenSkin.Design.Designer.TextBoxComponentDesigner")]
    [ToolboxBitmap(typeof(RichTextBox))]
    public class SqlString : Component
    {
        [Category("Wen")]
        [Description("Sql链接字符串")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        [Editor(typeof(Design.Editor.TextEditFormUITypeEditor), typeof(UITypeEditor))]
        public string Text { get; set; }

        public string TextFormat(params object[] args)
        {
            string result = string.Format(this.Text, args);
            return result;
        }
    }
}
